//
//  MyManager.m
//  RENTVISITOR
//
//  Created by wonder on 2017/10/23.
//  Copyright © 2017年 UNN. All rights reserved.
//

#import "MyManager.h"

static MyManager *manager = nil;

@implementation MyManager

+ (MyManager *)sharedMyManager
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[MyManager alloc] init];
        
        
        
    });
    return manager;
}
//限制方法，类只能初始化一次
//alloc的时候调用
+ (id) allocWithZone:(struct _NSZone *)zone{
    if(manager == nil){
        manager = [super allocWithZone:zone];
    }
    return manager;
}

//拷贝方法
- (id)copyWithZone:(NSZone *)zone{
    return manager;
}
@end
